Endoscopic drainage of the main pancreatic duct